<script>
	export default {
		
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			//检测小程序是否更新新版本
			const updateManager = tt.getUpdateManager();
			updateManager.onUpdateReady(function(res) {
				uni.showModal({
					title: '更新提示',
					content: '新版本已经准备好，是否重启应用？',
					showCancel: true,
					success(res) {
						if (res.confirm) {
							updateManager.applyUpdate();
						}
					}
				});
			});
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			getThemeConfig() {
				return {
					borderRadius: "8rpx", // string
					backgroundColor: "#FE2C55", // string
					fontColor: "#ffffff", // string
				};
			},
		},
	}
</script>

<style>
	/*每个页面公共css */
	.z-flex {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.z-flex-con {
		display: flex;
		align-items: center;
	}

	.z-flex-aro {
		display: flex;
		align-items: center;
		justify-content: space-around;
	}

	.rig {
		width: 26rpx;
		height: 32rpx;
	}

	button::after {
		border: none;
	}
</style>

<style lang="scss">
	@import "uview-ui/index.scss";
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';

	// 设置整个项目的背景色
	page {
		background-color: #f5f5f5;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}

	.example-kefubut {
		padding: 0;
		margin: 0;
		border: 0;
		line-height: normal;
		background-color: transparent;
		border-radius: 50%;
		overflow: hidden;

		&::after {
			display: none;
		}
	}
</style>